<?php $this -> load->view('admin/inc/header');?>
<div id="maincontainer">
    <?php $this -> load->view('admin/inc/menu_admin');?>
    <div id="primary">
        <table border='1' class="ql_nd">
            <tr>
                <th>sửa</th>
                <th>xóa</th>
                <th>id</th>
                <th>Full Name</th>
                <th>user</th>
                <th>Password</th>
                <th>State</th>
                <th>Quyền</th>
            </tr>
            <?php
                          if(isset($login)){
                            foreach($login->result_array() as $rowlogin):
                     ?>
                            <tr>
                                <td><a href='<?php echo site_url('admin/useradmin/update/'.$rowlogin['id_user']); ?>'><img src="<?php echo base_url();?>public/images/b_edit.png"/></a></td>
                                <td><a href='<?php echo site_url('admin/useradmin/delete/'.$rowlogin['id_user']); ?>'><img src="<?php echo base_url();?>public/images/b_drop.png" /></a></td>
                                <td><?php echo $rowlogin['id_user'];?></td>
                                <td><?php echo $rowlogin['fullname'];?></td>
                                <td><?php echo $rowlogin['user'];?></td>
                                <td><?php echo $rowlogin['password'];?></td>
                                <td><?php echo $rowlogin['state'];?></td>
                                <td><?php echo $rowlogin['permission'];?></td>

                            </tr>
                        <?php    endforeach;
                          }
                     ?>

        </table>
        <a id="insert" href="<?php echo site_url('admin/useradmin/insert')?>"><img src="<?php echo base_url()?>public/images/add.jpg"/> Thêm </a>
    </div><!--end #show-->
</div>
<?php $this -> load->view('admin/inc/footer');?>